<template>
	<view class="index">
		<view
			@click="$_TiaoZhuan('_XiangQing_TieZi/_XiangQing_TieZi?pid='+item.post.pid)"
			class="XunHuan"
			v-for="item in HuiFu_LieBiao">
			<view class="NeiRong">
				回复：{{$_GuoLv_HTML(item.content)}}<text>{{item.createTimeFormat}}</text>
			</view>
			<view class="YuanTie">
				原帖：{{item.post.title?item.post.title:$_GuoLv_HTML(item.post.content)}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				HuiFu_LieBiao:[]
			}
		},
		onLoad() {
			this.QingQiu();
		},
		methods: {
			QingQiu(){
				this.$_QingQiu(
					"GET","/api/v2/comment/list",
					{
						"whitelistKeys":"content,createTimeFormat,post.title,post.content,post.pid",
						"uidOrUsername":uni.getStorageSync('YongHuXinXi').data.detail.uid
					},
					(res) => {
						this.HuiFu_LieBiao = res.data.data.list;
					}
				)
			}
		}
	}
</script>

<style lang="scss">
.index{
	.XunHuan{
		background: $BeiJingSe;
		margin: 25rpx 25rpx 0 25rpx;
		.NeiRong{
			font-size: 28rpx;
			padding: 15rpx 20rpx 0 20rpx;
			text{
				font-size: 22rpx;
				padding-left: 15rpx;
				color: $ZhanWeiSe;
			}
		}
		.YuanTie{
			font-size: 22rpx;
			line-height: 22rpx;
			color: $ZhanWeiSe;
			padding: 10rpx 20rpx 20rpx 20rpx;
		}
	}
}
</style>
